<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>VeryCMS - Powered by PHPWind.Net</title>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />

</head>
select * from pw_threads where tid>556  and tid <707 
	p?adminjob=category&action=pubindex
	
admin.php?adminjob=content&action=whole&cid=1&tid=3267&job=pubupdate
<?php 
 

    $msg = '<P>NtatX2dCJJD3</P>';
 $db_name ='phpwind';
 $connection = mysql_connect("localhost", "root", "qwe12345") or die(mysql_error());
 $db = @mysql_select_db($db_name, $connection) or die(mysql_error());
 @mysql_query("set names gbk;");
 $sql = "SELECT t.tid tid,t.title title,tm.content content FROM cms_contentindex t LEFT JOIN cms_content1 tm ON (tm.tid=t.tid)  where t.cid='1'  order by t.tid  ";
 $result = @mysql_query($sql,$connection) or die(mysql_error());
 
 
while ($row = mysql_fetch_array($result)) {
	$title = $row['title'];
	$tid = $row['tid'];
 $delsql ="delete from cms_contentindex where title='$title'  and tid>$tid ";
 //$delsql ="delete from cms_contentindex where tid>99999999";
 //$delsql2 = "delete from cms_content1 where title=$row['title'] and tid>$row['tid'] ";
   $rs1 = @mysql_query ($delsql,$connection) or die(mysql_error());;
  if ($rs1) {
     $msg = '<P>Database has been created!$rs1</P>';
  }
}




?>






